﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yto.Common.Dependency;

namespace Yto.Unitwork
{
    public class ConnStringResolver : IConnStringResolver, ITransient
    {
        public string GetConnStringName(ConnStringArgs args)
        {
            switch (args["DbType"])
            {
                case "Oracle":
                    return "Oracle";
                    break;
                default:
                    return "Default";
                    break;
            }
        }
    }
}
